package edu.sctu.zcy.month201507.summer2;


import java.util.Collections;
import java.util.List;

/**
 * Created by zcy on 2015/7/13.
 */
public class SummerSecond {

    public int[] result = new int[2];
    public int[] getResult(List<Integer> number){

        Collections.sort(number);

        result[0] = number.get(0);
        result[1] = number.get(number.size()-1);

        return result;
    }



}
